//
//  SubmitWorkCollectionViewCell.m
//  Learn
//
//  Created by 迟建国 on 2024/4/5.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "SubmitWorkCollectionViewCell.h"
#import "TextBookUnitSourceListModel.h"

@implementation SubmitWorkCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.layer.cornerRadius = 15;
    self.layer.masksToBounds = YES;
    // Initialization code
}

- (void)setWordModel:(TextBookUnitWordModel *)wordModel {
    _wordModel = wordModel;
    self.titleL.text = wordModel.words;
    self.numL.text = [NSString stringWithFormat:@"%.f",wordModel.totalScore];
}
- (IBAction)clickedPlayBtn:(UIButton *)sender {
    if(self.playBlock){
        self.playBlock();
    }
}

- (void)setTextModel:(TextBookUnitTextModel *)textModel {
    _textModel = textModel;
    self.titleL.text = textModel.name;
    self.numL.text = [NSString stringWithFormat:@"%.f",textModel.totalScore];
}

@end
